import request from "@/utils/request";

//添加售后计划
export const addreform = data => {
  return request({
    url: "/crm/reform/add",
    method: "post",
    data
  });
};

//编辑售后计划/crm/reform/edit/{reformId}
export const updatareform = (reformId,data) => {
  return request({
    url: `/crm/reform/edit/${reformId}`,
    method: "put",
    data
  });
};
//查看 整改/增减项
export const reformDetail = reformId => {
  return request({
    url: `/crm/reform/${reformId}`,
    method: "get"
  });
};
//根据模板id计算预计完成日期
export const expecteddelaydays = packageId => {
  return request({
    url: `/crm/reform/template/${packageId}/expected-delay-days`,
    method: "get"
  });
};